package com.admin.boot.modules.online.service;

import com.admin.boot.common.utils.Result;
import com.admin.boot.modules.online.entity.OnlineTable;
import com.admin.boot.modules.online.vo.CodeGenerateVo;
import com.baomidou.mybatisplus.extension.service.IService;
import freemarker.template.TemplateException;

import java.io.IOException;

/**
 * @version v3.0
 * @Description: TODO
 * @author: jeecg-boot
 * @date: 2024-01-10
 */
public interface IOnlineTableService extends IService<OnlineTable> {

    Result<?> addTable(OnlineTable onlineTable);

    Result<?> deleteTable(String id);

    Result<?> edit(OnlineTable onlineTable);

    Result<?> syncDb(String id);

    void codeGenerate(CodeGenerateVo codeGenerateVo) throws IOException, TemplateException;
}
